package com.jiezhuo.dto;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.jiezhuo.entity.IotSceneInfo;

@JsonSerialize(
   include = JsonSerialize.Inclusion.NON_NULL
)
public class IotSceneInfoBO extends IotSceneInfo {
   private Integer is_parent;
   private Integer unread_alarm;
   private Integer device_num;

   public IotSceneInfoBO(Integer id) {
      this.setId(id);
   }

   public Integer getIs_parent() {
      return this.is_parent;
   }

   public Integer getUnread_alarm() {
      return this.unread_alarm;
   }

   public Integer getDevice_num() {
      return this.device_num;
   }

   public void setIs_parent(Integer is_parent) {
      this.is_parent = is_parent;
   }

   public void setUnread_alarm(Integer unread_alarm) {
      this.unread_alarm = unread_alarm;
   }

   public void setDevice_num(Integer device_num) {
      this.device_num = device_num;
   }

   public String toString() {
      return "IotSceneInfoBO(is_parent=" + this.getIs_parent() + ", unread_alarm=" + this.getUnread_alarm() + ", device_num=" + this.getDevice_num() + ")";
   }

   public IotSceneInfoBO() {
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof com.jiezhuo.dto.IotSceneInfoBO)) {
         return false;
      } else {
         com.jiezhuo.dto.IotSceneInfoBO other = (com.jiezhuo.dto.IotSceneInfoBO)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            label47: {
               Object this$is_parent = this.getIs_parent();
               Object other$is_parent = other.getIs_parent();
               if (this$is_parent == null) {
                  if (other$is_parent == null) {
                     break label47;
                  }
               } else if (this$is_parent.equals(other$is_parent)) {
                  break label47;
               }

               return false;
            }

            Object this$unread_alarm = this.getUnread_alarm();
            Object other$unread_alarm = other.getUnread_alarm();
            if (this$unread_alarm == null) {
               if (other$unread_alarm != null) {
                  return false;
               }
            } else if (!this$unread_alarm.equals(other$unread_alarm)) {
               return false;
            }

            Object this$device_num = this.getDevice_num();
            Object other$device_num = other.getDevice_num();
            if (this$device_num == null) {
               if (other$device_num != null) {
                  return false;
               }
            } else if (!this$device_num.equals(other$device_num)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof com.jiezhuo.dto.IotSceneInfoBO;
   }

   public int hashCode() {

      int result = 1;
      Object $is_parent = this.getIs_parent();
       result = result * 59 + ($is_parent == null ? 43 : $is_parent.hashCode());
      Object $unread_alarm = this.getUnread_alarm();
      result = result * 59 + ($unread_alarm == null ? 43 : $unread_alarm.hashCode());
      Object $device_num = this.getDevice_num();
      result = result * 59 + ($device_num == null ? 43 : $device_num.hashCode());
      return result;
   }
}
